//
//  BaseCardCell.m
//  Common
//
//  Created by shiqing guo on 2018/11/7.
//  Copyright © 2018年 www.bitkinetic.com. All rights reserved.
//

#import "BaseCardCell.h"
#import "EPColor.h"

@implementation BaseCardCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        self.backgroundColor = [EPColor epColor_Bg];
        
        UIImage *image = [UIImage imageNamed:@"nc_card_bg"];
        image = [image resizableImageWithCapInsets:UIEdgeInsetsMake(image.size.height/2, image.size.width/2, image.size.height/2, image.size.width/2) resizingMode:UIImageResizingModeTile];
        self.backgroundView = [[UIImageView alloc] initWithImage:image];
    }
    return self;
}

- (instancetype)init
{
    if (self = [super init]) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        self.backgroundColor = [EPColor epColor_Bg];
        
        UIImage *image = [UIImage imageNamed:@"nc_card_bg"];
        image = [image resizableImageWithCapInsets:UIEdgeInsetsMake(image.size.height/2, image.size.width/2, image.size.height/2, image.size.width/2) resizingMode:UIImageResizingModeTile];
        self.backgroundView = [[UIImageView alloc] initWithImage:image];
    }
    return self;
}

@end
